package com.wcpdoc.exam.core.dao.impl;

import com.wcpdoc.core.dao.impl.RBaseDaoImpl;
import com.wcpdoc.core.entity.PageIn;
import com.wcpdoc.core.entity.PageOut;
import com.wcpdoc.exam.core.dao.ExmMyExerDao;
import com.wcpdoc.exam.core.entity.ExmMyExer;
import org.springframework.stereotype.Repository;

@Repository
public class ExmMyExerDaoImpl extends RBaseDaoImpl<ExmMyExer> implements ExmMyExerDao {
    @Override
    public PageOut getListpage(PageIn pageIn) {
        return null;
    }

    /**
     * 获取练习
     *
     * @param userId
     * @param type
     * @return
     */
    @Override
    public ExmMyExer get(Integer userId, Integer type) {
        String sql="select * from exm_my_exer where USER_ID=:USER_ID and TYPE=:TYPE";
        return getEntity(sql, new Object[] { userId,type }, ExmMyExer.class);
    }
}
